<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会计记账</title>
</head>

<body>

<form action="" method="post">

<?php foreach($arr as $value): ?>
	<p><?php echo  $value['attr_name'];?>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo  $value['attr_profile'];?></p>

	<?php if($value['attr_region'] == 1):?>
		<?php foreach($value['reg'] as $val):?>
				<input type="radio" name="<?php echo $value['attr_names'];?>" id="male<?php echo $val['reg_id'];?>"  value="<?php echo $val['reg_pid'];?>|<?php echo $val['reg_cid'];?>|<?php echo $val['reg_did'];?>"  />
				<label for="male<?php echo $val['reg_id'];?>"><?php echo $val['regname'];?></label>
				<br />
		<?php endforeach;?>
	<?php endif;?>
	<?php if($value['attr_region'] == 0 || $value['attr_type'] == 'radio'):?>
		<?php foreach($value['reg'] as $val):?>
			<input <?php if($val['val_checked'] == '1'):?>checked="checked"<?php endif;?> name="<?php echo $value['attr_names'];?>" type="radio" value="<?php echo $val['val_id'];?>" id="male<?php echo $val['val_id'];?>" />

			<label for="male<?php echo $val['val_id'];?>"><?php echo $val['val_value'];?>
</label>


		<?php endforeach;?>
	<?php endif;?>
<?php endforeach;?>	

<br><input type="submit" value="下一步">
</form>
</body>
</html>
